<? if($this->pageArray['pageNumber']>=0):?>
			<form name="productIndexForm" id="productIndexForm" action="admins<?=CHOSING_DE?>product<?=CHOSING_DE?>del" method="post">
				<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse">
					<tr>
						
						<td width="6%" class="bbgg">
							<strong>预售订单号</strong>
						</td>                             
						<td width="18%" class="bbgg">
							<strong>下订时间</strong>
							<br />
							<strong>付款时间</strong>
						</td>
						<td width="15%" class="bbgg">
							<strong>买家</strong>
						</td>
						<td width="8%" class="bbgg">
							<strong>订单金额</strong>
						</td>
						<td width="8%" class="bbgg">
							<strong>状态</strong>
						</td>
						
						<td width="6%" class="bbgg">
							<strong>相关订单号</strong>
						</td>
                                                
						<td width="18%" class="bbgg">
							<strong>下订时间</strong>
							<br />
							<strong>付款时间</strong>
						</td>
						
						<td width="8%" class="bbgg">
							<strong>订单金额</strong>
						</td>
						<td width="8%" class="bbgg">
							<strong>状态</strong>
						</td>
						
						
					</tr>		
					<?foreach($this->orderArray as $value):?>					
					<tr bgcolor="#FFFFFF">
						
						<td align="center" valign="middle">
							<a href="administrator-order-more?orderid=<?=$value['preorder'][0]['orderid']?>">G<?=$value['preorder'][0]['orderid']?></a> 
						</td>
						<td align="center">
							<?=date('Y-m-d H:i:s',$value['preorder'][0]['add_time'])?>
							<br />
							<?if($value['preorder'][0]['pay_time']!=0):?>
								<?=date('Y-m-d H:i:s',$value['preorder'][0]['pay_time'])?>
							<?else:?>
								未付款  <?php if ($value['preorder'][0]['email_paypal'] != "''"):?>paypal email: <?php echo $value['email_paypal'];?><?php endif;?>
							<?endif;?>
						</td>
						<td align="center">
							<?php if (!empty($value['preorder'][0]['username'])):?>
								<?php echo $value['preorder'][0]['username'];?>
							<?php else:?>
								<?php echo '从' . $value['preorder'][0]['reg_from'] . '注册';?>
							<?php endif;?>
						</td>
						<td align="center">
							$<?=round($value['preorder'][0]['money']*$value['preorder'][0]['discount'],2)?>
						</td>
						
						<td align="center">
							<?=$value['preorder'][0]['flname']?>
						</td>
						<td align="center" valign="middle">
						<?php if(!empty($value['related'][0])):?>
							<a href="administrator-order-more?orderid=<?=$value['related'][0]['orderid']?>">G<?=$value['related'][0]['orderid']?></a>
						<?php endif;?>
						</td>
						<td align="center">
						<?php if(!empty($value['related'][0])):?>
							<?=date('Y-m-d H:i:s',$value['related'][0]['add_time'])?>
							
						<?php endif;?>
						</td>
						
						<td align="center">
						<?php if(!empty($value['related'][0])):?>	
							$<?=round($value['related'][0]['money']*$value['preorder'][0]['discount'],2)?>
						<?php endif;?>
						</td>
						
						<td align="center">
						<?php if(!empty($value['related'][0])):?>
							<?=$value['related'][0]['flname']?>
						<?php endif;?>
						</td>
						
					</tr>
					<? endforeach;?>
													
				</table>
				<br />
				<div class="factory_page">共 <?=$this->pageArray['pageNumber']?> 页/当前第<?php echo $this->pageArray['page'];?>　<?=$this->pageString?>页</div>
			</form>
<?else:?>
	<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse">
		<tr>
			<td><?=$this->getMsg('该状态下暂无订单!');?></td>
		</tr>											
	</table>
<?endif;?>